//
//  DKMainBankCardInputErrorModel.m
//  DanKU
//
//  Created by 蓝鳍互娱 on 2023/12/13.
//

#import "DKMainBankCardInputErrorModel.h"

@implementation DKMainBankCardInputErrorModel
-(instancetype)init{
    if(self = [super init]){
        self.currentTime = [NSString getCurrentTimeDayTimestamp];
        self.errorNum = @"0";
    }
    return self;
}
//归档调用
- (void)encodeWithCoder:(NSCoder *)encoder{
    [encoder encodeObject:self.currentTime forKey:@"currentTime"];
    [encoder encodeObject:self.errorNum forKey:@"errorNum"];
}
//解档调用
-(instancetype)initWithCoder:(NSCoder *)coder{
    if (self = [super init]) {
        self.currentTime = [coder decodeObjectForKey:@"currentTime"];
        self.errorNum = [coder decodeObjectForKey:@"errorNum"];
    }
    return self;
}
+ (BOOL)supportsSecureCoding {
    return YES;
}
@end
